package IC.AST.nodes;

import IC.AST.*;

/**
 * a type which is an array
 */
public class ArrayTypeDecl extends TypeDecl {
	private TypeDecl elemType;	// the element type

	/**
	 * @param elemType the element type
	 * @param fileName TODO
	 * @param line the node line number
	 * @param column the node column number
	 */
	public ArrayTypeDecl(TypeDecl elemType, String fileName, int line, int column) {
		super(fileName, line,column);
		this.elemType = elemType;
	}

	/**
	 * @return the element type
	 */
	public TypeDecl getElemType() {
		return this.elemType;
	}

	public <D,U> U accept(PropogatingVisitor<D,U> v, D context) throws Exception {
		return v.visit(this,context);
	}
}
